package com.blue.bluecode.helper;

import android.content.Context;
import android.widget.Toast;

/**
 *
 * Created by bluewaitor on 2015/4/13.
 */
public class ToastHelper {

    public ToastHelper() {
        throw new UnsupportedOperationException("can't not init");
    }

    public static Toast showShort(Context context, String str){
        Toast toast = Toast.makeText(context, str, Toast.LENGTH_SHORT);
        toast.show();
        return toast;
    }

    public static Toast showLong(Context context, String str){
        Toast toast = Toast.makeText(context, str, Toast.LENGTH_LONG);
        toast.show();
        return toast;
    }
}
